/**
 * 设置地图图层
 * */
import XYZ from 'ol/source/XYZ';
import TileLayer from 'ol/layer/Tile';
// 地图瓦片URL模板
const tiles = "https://webrd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}"
const mainLayers = new TileLayer({
    source: new XYZ({
        url: tiles,
    }),
})
export default mainLayers
